:root {
  --color-primary: #d95d39;
  --color-secondary: #0e1428;
}

* {
  box-sizing: border-box;
  font-family: "Roboto";
  
}

body {
  padding: 0;
  margin: 0;
  font-size: 20px;
}

nav.navbar {
  display: flex;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 999;
  min-width: 400px;
  flex-direction: row;
  align-items: center;
  padding: 0 20px 0 20px;

  background-color: rgba(166, 221, 64, 0.7);
  backdrop-filter: blur(12px);

  color: white;
}

nav.navbar > .navbar-logo {
  font-weight: bold;
  font-size: 25px;
}
nav.navbar > .navbar-logo img{
  height: 25px;
}
nav.navbar > .navegation {
  margin-left: auto;
  display: flex;
  flex-direction: row;
}

nav.navbar > .navegation > .navegation-item {
  padding: 20px 0 20px 0;
  margin: 0 20px 0 20px;

  position: relative;
}



.submenu > .navegation-item {
  padding: 20px 20px 20px 20px;

  position: relative;
}

nav.navbar > .navegation > .navegation-item.active {
  font-weight: bold;
}

nav.navbar > .navegation > .navegation-item:hover > a {
  transform: scale(120%);

  transition: transform 0.5s ease;
}

nav.navbar > .navegation > .navegation-item a {
  transition: transform 0.5s ease;

  color: white;
  text-decoration: none;

  font-weight: lighter;
}

.navegation-item > .submenu {
  position: absolute;
  display: block;

  visibility: hidden;
  opacity: 0;

  background-color: var(--mindaro);
  width: max-content;

  transform: translateY(-100%);

  transition: transform 0.2s ease-in, opacity 0.6s ease-in, height 0.5s ease-in;
}

.navegation-item:hover > .submenu {
  visibility: visible;
  transition: transform 0.2s ease-in, opacity 0.6s ease-in, height 0.5s ease-in;

  transform: translateY(0);

  opacity: 1;

  z-index: -1;
}

.navegation-item:hover > .submenu.top {
  top: 100%;
  right: auto;
}

.navegation-item:hover > .submenu.left {
  top: 0;
  right: 100%;
}

@media (max-width: 500px) {
  .navbar {
    position: relative;
  }
  nav.navbar{
    padding-right: 0px;
  }

  .submenu {
    width: 100% !important;
  }

  .navegation-item > .submenu {
    transform: translateY(0);
  }

  .navegation-item:hover > .submenu {
    z-index: 1;
  }

  .navegation-item:hover > .submenu.top {
    position: relative;
    top: 0%;
    right: auto;
  }

  .navegation-item:hover > .submenu.left {
    position: relative;
    top: 0%;
    left: 0%;
  }

  .navegation {
    padding: 0;
    margin: 0;
  }
  nav.navbar > .navegation > .navegation-item {
    width: 100%;
    padding: 0;
    margin: 0 5px;
  }
}
